package com.z.httpservicetest.controller.system;

import com.z.httpservicetest.model.system.entitys.SysUser;
import com.z.httpservicetest.service.system.SysUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户信息表 前端控制器
 * </p>
 *
 * @author 张鑫
 * @since 2024-08-27
 */

@RestController
@RequestMapping("/sys-user")
@Tag(name = "user测试controller")
public class SysUserController {

    @Resource
    private SysUserService sysUserService;

    @GetMapping(value = "/getUser")
    @Operation(summary = "获取所有用户信息")
    public List<SysUser> getUser(){
        return sysUserService.list();
    }
}
